package com.task.service.impl;

import com.task.bean.Comment;
import com.task.mapper.CommentMapper;
import com.task.service.ICommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.task.vo.CommentAndStuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liuzhe
 * @since 2021-04-10
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    @Autowired
    private CommentMapper commentMapper;
    @Override
    public List<CommentAndStuVo> queryCommentListByEvaId(int evaId) {
        return commentMapper.queryCommentListByEvaId(evaId);
    }
}
